<!--
 -
 - Licensed to the Apache Software Foundation (ASF) under one
 - or more contributor license agreements.  See the NOTICE file
 - distributed with this work for additional information
 - regarding copyright ownership.  The ASF licenses this file
 - to you under the Apache License, Version 2.0 (the
 - "License"); you may not use this file except in compliance
 - with the License.  You may obtain a copy of the License at
 -
 -   http://www.apache.org/licenses/LICENSE-2.0
 -
 - Unless required by applicable law or agreed to in writing,
 - software distributed under the License is distributed on an
 - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 - KIND, either express or implied.  See the License for the
 - specific language governing permissions and limitations
 - under the License.
 -
 -->
<div>
<form class="addPreferencesProviderForm" method="post" data-dojo-type="dijit/form/Form" data-dojo-attach-point="preferencesProviderForm">
    <div class="formBox">
        <fieldset>
            <legend>Preferences Provider</legend>
            <div class="clear hidden">
                <div class="formLabel-labelCell tableContainer-labelCell">Name*:</div>
                <div class="formLabel-controlCell tableContainer-valueCell">
                    <input type="text"
                           data-dojo-attach-point="preferencesProviderNameWidget"
                           data-dojo-type="dijit/form/ValidationTextBox"
                           data-dojo-props="
                                  name: 'name',
                                  required: true,
                                  disabled: true,
                                  placeHolder: 'preferences provider name',
                                  promptMessage: 'Name of preferences provider, must be unique',
                                  title: 'Enter a unique preferences provider name per broker'" />
                </div>
            </div>
            <div class="clear">
                <div class="formLabel-labelCell tableContainer-labelCell">Type*:</div>
                <div class="tableContainer-valueCell formLabel-controlCell">
                    <select data-dojo-attach-point="preferencesProviderTypeWidget"
                            data-dojo-type="dijit/form/FilteringSelect"
                            data-dojo-props="
                                    name: 'type',
                                    required: true,
                                    disabled: true,
                                    placeHolder: 'select preferences provider type',
                                    promptMessage: 'Type of preferences provider',
                                    title: 'Select preferences provider type',
                                    searchAttr: 'name'">
                    </select>
                </div>
            </div>
            <div class="clear"></div>
            <div data-dojo-attach-point="preferencesProviderTypeFieldsContainer"></div>
        </fieldset>
    </div>
</form>
</div>
